import Vue from 'vue';
import Router from 'vue-router';
import Layout from '@/layout/Layout';
import equip from './modules/equip';
import business from './modules/business';
import address from './modules/address';
import server from './modules/server';
import goods from './modules/goods';
import order from './modules/order';
import operation from './modules/operation';
import finance from './modules/finance';
import account from './modules/account';
import customer from './modules/customer';
import resident from './modules/resident';
// 消息
import message from './modules/message';
// 授权管理
import organ from './modules/organ';
// 系统管理
import system from './modules/system';
// 机构
import institution from './modules/institution';
// 公共管理
import publicModule from './modules/public';
Vue.use(Router);

// 公共路由
export const constantRouterMap = [
  {
    path: '/redirect',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '/redirect/:path(.*)',
        component: (resolve) => import('@/views/redirect'),
      },
    ],
  },
  {
    path: '/login',
    component: () => import('@/views/Login'),
    //component: () => import('@/views/demo/index'),
    hidden: true,
  },
  {
    path: '/404',
    component: () => import('@/views/system/error/404'),
    hidden: true,
  },
  {
    path: '/401',
    component: () => import('@/views/system/error/401'),
    hidden: true,
  },
  {
    path: '',
    component: Layout,
    redirect: 'index',
    children: [
      {
        path: 'index',
        component: () => import('@/views/Home'),
        name: '首页',
        meta: { title: '首页', icon: 'el-icon-s-home', affix: true, cache: true },
      },
      // ------------------------------------公共管理------------------------------------

      //------------------------------------设备开通池------------------------------------
      {
        path: '/equip/safetyEdit',
        name: '编辑安全设备',
        meta: { title: '编辑安全设备' },
        hidden: true,
        component: () => import('@/views/equip/safety/SafetyEdit'),
      },
      // ------------------------------------呼叫器管理------------------------------------
      {
        path: '/equip/beeperAdd',
        name: '新增呼叫器',
        meta: { title: '新增呼叫器' },
        hidden: true,
        component: () => import('@/views/equip/beeper/BeeperAdd'),
      },
      {
        path: '/equip/beeperEdit',
        name: '编辑呼叫器',
        meta: { title: '编辑呼叫器' },
        hidden: true,
        component: () => import('@/views/equip/beeper/BeeperAdd'),
      },
      {
        path: '/equip/beeperBatchModify',
        name: '批量修改呼叫器',
        meta: { title: '批量修改呼叫器' },
        hidden: true,
        component: () => import('@/views/equip/beeper/BeeperBatchModify'),
      },
      {
        path: '/equip/beeperDetail',
        name: '呼叫器详情',
        meta: { title: '呼叫器详情' },
        hidden: true,
        component: () => import('@/views/equip/beeper/BeeperDetail'),
      },
      // ------------------------------------呼叫器分类------------------------------------
      {
        path: '/equip/beeperClassifyAdd',
        name: '新增呼叫器分类',
        meta: { title: '新增呼叫器分类' },
        hidden: true,
        component: () => import('@/views/equip/beeper/BeeperClassifyAdd'),
      },
      {
        path: '/equip/beeperClassifyEdit',
        name: '编辑呼叫器分类',
        meta: { title: '编辑呼叫器分类' },
        hidden: true,
        component: () => import('@/views/equip/beeper/BeeperClassifyAdd'),
      },
      {
        path: '/equip/beeperClassifyDetail',
        name: '呼叫器分类详情',
        meta: { title: '呼叫器分类详情' },
        hidden: true,
        component: () => import('@/views/equip/beeper/BeeperClassifyDetail'),
      },
      // ------------------------------------接收器管理------------------------------------
      {
        path: '/equip/receiverAdd',
        name: '新增接收器',
        meta: { title: '新增接收器' },
        hidden: true,
        component: () => import('@/views/equip/receiver/ReceiverAdd'),
      },
      {
        path: '/equip/receiverEdit',
        name: '编辑接收器',
        meta: { title: '编辑接收器' },
        hidden: true,
        component: () => import('@/views/equip/receiver/ReceiverAdd'),
      },
      {
        path: '/equip/receiverDetail',
        name: '接收器详情',
        meta: { title: '接收器详情' },
        hidden: true,
        component: () => import('@/views/equip/receiver/ReceiverDetail'),
      },
      // ------------------------------------安全设备管理------------------------------------
      // {
      //   path: "/equip/safetyAdd",
      //   name: "新增安全设备",
      //   meta: { title: "新增安全设备"},
      //   hidden: true,
      //   component: () => import("@/views/equip/SafetyAdd")
      // },
      // {
      //   path: "/equip/safetyEdit",
      //   name: "编辑安全设备",
      //   meta: { title: "编辑安全设备" },
      //   hidden: true,
      //   component: () => import("@/views/equip/SafetyAdd")
      // },
      // {
      //   path: "/equip/safetyDetail",
      //   name: "安全设备详情",
      //   meta: { title: "安全设备详情" },
      //   hidden: true,
      //   component: () => import("@/views/equip/SafetyDetail")
      // },
      // ------------------------------------烟雾报警器管理------------------------------------
      {
        path: '/equip/smokeAdd',
        name: '新增烟雾报警器',
        meta: { title: '新增烟雾报警器' },
        hidden: true,
        component: () => import('@/views/equip/smoke/SmokeAdd'),
      },
      {
        path: '/equip/smokeEdit',
        name: '编辑烟雾报警器',
        meta: { title: '编辑烟雾报警器' },
        hidden: true,
        component: () => import('@/views/equip/smoke/SmokeAdd'),
      },
      {
        path: '/equip/smokeDetail',
        name: '烟雾报警器详情',
        meta: { title: '烟雾报警器详情' },
        hidden: true,
        component: () => import('@/views/equip/smoke/SmokeDetail'),
      },
      // ------------------------------------燃气报警器管理------------------------------------
      {
        path: '/equip/gasAdd',
        name: '新增燃气报警器',
        meta: { title: '新增燃气报警器' },
        hidden: true,
        component: () => import('@/views/equip/gas/GasAdd'),
      },
      {
        path: '/equip/gasEdit',
        name: '编辑燃气报警器',
        meta: { title: '编辑燃气报警器' },
        hidden: true,
        component: () => import('@/views/equip/gas/GasAdd'),
      },
      {
        path: '/equip/gasDetail',
        name: '燃气报警器详情',
        meta: { title: '燃气报警器详情' },
        hidden: true,
        component: () => import('@/views/equip/gas/GasDetail'),
      },
      // ------------------------------------门磁报警器管理------------------------------------
      {
        path: '/equip/doorLockAdd',
        name: '新增门磁报警器',
        meta: { title: '新增门磁报警器' },
        hidden: true,
        component: () => import('@/views/equip/doorLock/DoorLockAdd'),
      },
      {
        path: '/equip/doorLockEdit',
        name: '编辑门磁报警器',
        meta: { title: '编辑门磁报警器' },
        hidden: true,
        component: () => import('@/views/equip/doorLock/DoorLockAdd'),
      },
      {
        path: '/equip/doorLockDetail',
        name: '门磁报警器详情',
        meta: { title: '门磁报警器详情' },
        hidden: true,
        component: () => import('@/views/equip/doorLock/DoorLockDetail'),
      },
      // ------------------------------------紧急报警器------------------------------------
      {
        path: '/equip/sosAdd',
        name: '新增SOS报警器',
        meta: { title: '新增SOS报警器' },
        hidden: true,
        component: () => import('@/views/equip/sos/SosAdd'),
      },
      {
        path: '/equip/sosEdit',
        name: '编辑SOS报警器',
        meta: { title: '编辑SOS报警器' },
        hidden: true,
        component: () => import('@/views/equip/sos/SosAdd'),
      },
      {
        path: '/equip/sosDetail',
        name: 'SOS报警器详情',
        meta: { title: 'SOS报警器详情' },
        hidden: true,
        component: () => import('@/views/equip/sos/SosDetail'),
      },
      // ------------------------------------跌倒报警器------------------------------------
      {
        path: '/equip/radarAdd',
        name: '新增跌倒报警器',
        meta: { title: '新增跌倒报警器' },
        hidden: true,
        component: () => import('@/views/equip/radar/RadarAdd'),
      },
      {
        path: '/equip/radarEdit',
        name: '编辑跌倒报警器',
        meta: { title: '编辑跌倒报警器' },
        hidden: true,
        component: () => import('@/views/equip/radar/RadarAdd'),
      },
      {
        path: '/equip/radarDetail',
        name: '跌倒报警器详情',
        meta: { title: '跌倒报警器详情' },
        hidden: true,
        component: () => import('@/views/equip/radar/RadarDetail'),
      },
      // ------------------------------------红外探测器------------------------------------
      {
        path: '/equip/infraredAdd',
        name: '新增红外探测器',
        meta: { title: '新增红外探测器' },
        hidden: true,
        component: () => import('@/views/equip/infrared/InfraredAdd'),
      },
      {
        path: '/equip/infraredEdit',
        name: '编辑红外探测器',
        meta: { title: '编辑红外探测器' },
        hidden: true,
        component: () => import('@/views/equip/infrared/InfraredAdd'),
      },
      {
        path: '/equip/infraredDetail',
        name: '红外探测器详情',
        meta: { title: '红外探测器详情' },
        hidden: true,
        component: () => import('@/views/equip/infrared/InfraredDetail'),
      },
      // ------------------------------------水浸卫士------------------------------------
      {
        path: '/equip/waterFloodAdd',
        name: '新增水浸卫士',
        meta: { title: '新增水浸卫士' },
        hidden: true,
        component: () => import('@/views/equip/water/WaterFloodAdd'),
      },
      {
        path: '/equip/waterFloodEdit',
        name: '编辑水浸卫士',
        meta: { title: '编辑水浸卫士' },
        hidden: true,
        component: () => import('@/views/equip/water/WaterFloodAdd'),
      },
      {
        path: '/equip/waterFloodDetail',
        name: '水浸卫士详情',
        meta: { title: '水浸卫士详情' },
        hidden: true,
        component: () => import('@/views/equip/water/WaterFloodDetail'),
      },
      // ------------------------------------睡眠检测仪------------------------------------
      {
        path: '/equip/sleepAdd',
        name: '新增睡眠检测仪',
        meta: { title: '新增睡眠检测仪' },
        hidden: true,
        component: () => import('@/views/equip/sleep/SleepAdd'),
      },
      {
        path: '/equip/sleepEdit',
        name: '编辑睡眠检测仪',
        meta: { title: '编辑睡眠检测仪' },
        hidden: true,
        component: () => import('@/views/equip/sleep/SleepAdd'),
      },
      {
        path: '/equip/sleepDetail',
        name: '睡眠检测仪详情',
        meta: { title: '睡眠检测仪详情' },
        hidden: true,
        component: () => import('@/views/equip/sleep/SleepDetail'),
      },
      // ------------------------------------血糖仪------------------------------------
      {
        path: '/equip/sugarAdd',
        name: '新增血糖仪',
        meta: { title: '新增血糖仪' },
        hidden: true,
        component: () => import('@/views/equip/sugar/SugarAdd'),
      },
      {
        path: '/equip/sugarEdit',
        name: '编辑血糖仪',
        meta: { title: '编辑血糖仪' },
        hidden: true,
        component: () => import('@/views/equip/sugar/SugarAdd'),
      },
      {
        path: '/equip/sugarDetail',
        name: '血糖仪详情',
        meta: { title: '血糖仪详情' },
        hidden: true,
        component: () => import('@/views/equip/sugar/SugarDetail'),
      },
      // ------------------------------------血压仪------------------------------------
      {
        path: '/equip/pressureAdd',
        name: '新增血压仪',
        meta: { title: '新增血压仪' },
        hidden: true,
        component: () => import('@/views/equip/pressure/PressureAdd'),
      },
      {
        path: '/equip/pressureEdit',
        name: '编辑血压仪',
        meta: { title: '编辑血压仪' },
        hidden: true,
        component: () => import('@/views/equip/pressure/PressureAdd'),
      },
      {
        path: '/equip/pressureDetail',
        name: '血压仪详情',
        meta: { title: '血压仪详情' },
        hidden: true,
        component: () => import('@/views/equip/pressure/PressureDetail'),
      },
      // ------------------------------------动态血压仪------------------------------------
      {
        path: '/equip/dynamicPressureAdd',
        name: '新增血压仪',
        meta: { title: '新增血压仪' },
        hidden: true,
        component: () => import('@/views/equip/dynamicPressure/DynamicPressureAdd'),
      },
      {
        path: '/equip/dynamicPressureEdit',
        name: '编辑血压仪',
        meta: { title: '编辑血压仪' },
        hidden: true,
        component: () => import('@/views/equip/dynamicPressure/DynamicPressureAdd'),
      },
      {
        path: '/equip/dynamicPressureDetail',
        name: '血压仪详情',
        meta: { title: '血压仪详情' },
        hidden: true,
        component: () => import('@/views/equip/dynamicPressure/DynamicPressureDetail'),
      },
      // ------------------------------------拐杖------------------------------------
      {
        path: '/equip/crutchAdd',
        name: '新增拐杖',
        meta: { title: '新增拐杖' },
        hidden: true,
        component: () => import('@/views/equip/crutch/CrutchAdd'),
      },
      {
        path: '/equip/crutchEdit',
        name: '编辑拐杖',
        meta: { title: '编辑拐杖' },
        hidden: true,
        component: () => import('@/views/equip/crutch/CrutchAdd'),
      },
      {
        path: '/equip/crutchDetail',
        name: '拐杖详情',
        meta: { title: '拐杖详情' },
        hidden: true,
        component: () => import('@/views/equip/crutch/CrutchDetail'),
      },
      {
        path: '/equip/locatingShoeAdd',
        name: '定位鞋拐杖',
        meta: { title: '定位鞋拐杖' },
        hidden: true,
        component: () => import('@/views/equip/locatingShoe/LocatingShoeAdd'),
      },
      {
        path: '/equip/locatingShoeEdit',
        name: '定位鞋拐杖',
        meta: { title: '定位鞋拐杖' },
        hidden: true,
        component: () => import('@/views/equip/locatingShoe/LocatingShoeAdd'),
      },
      {
        path: '/equip/locatingShoeDetail',
        name: '定位鞋详情',
        meta: { title: '定位鞋详情' },
        hidden: true,
        component: () => import('@/views/equip/locatingShoe/LocatingShoeDetail'),
      },
      // ------------------------------------胸牌------------------------------------
      {
        path: '/equip/badgeAdd',
        name: '新增胸牌',
        meta: { title: '新增胸牌' },
        hidden: true,
        component: () => import('@/views/equip/badge/BadgeAdd'),
      },
      {
        path: '/equip/badgeEdit',
        name: '编辑胸牌',
        meta: { title: '编辑胸牌' },
        hidden: true,
        component: () => import('@/views/equip/badge/BadgeAdd'),
      },
      {
        path: '/equip/badgeDetail',
        name: '胸牌详情',
        meta: { title: '胸牌详情' },
        hidden: true,
        component: () => import('@/views/equip/badge/BadgeDetail'),
      },
      // ------------------------------------智能手表------------------------------------
      {
        path: '/equip/watchAdd',
        name: '新增智能手表',
        meta: { title: '新增智能手表' },
        hidden: true,
        component: () => import('@/views/equip/watch/WatchAdd'),
      },
      {
        path: '/equip/watchEdit',
        name: '编辑智能手表',
        meta: { title: '编辑智能手表' },
        hidden: true,
        component: () => import('@/views/equip/watch/WatchAdd'),
      },
      {
        path: '/equip/watchDetail',
        name: '智能手表详情',
        meta: { title: '智能手表详情' },
        hidden: true,
        component: () => import('@/views/equip/watch/WatchDetail'),
      },
      {
        path: '/equip/watchMovementPath',
        name: '运动轨迹',
        meta: { title: '运动轨迹' },
        hidden: true,
        component: () => import('@/views/equip/watch/WatchMovementPath'),
      },
      {
        path: '/equip/watchUserMap',
        name: '用户地图',
        meta: { title: '用户地图' },
        hidden: true,
        component: () => import('@/views/equip/watch/WatchUserMap'),
      },
      // ------------------------------------标本箱------------------------------------
      {
        path: '/equip/specimenAdd',
        name: '新增标本箱',
        meta: { title: '新增血压仪' },
        hidden: true,
        component: () => import('@/views/equip/specimen/SpecimenAdd'),
      },
      {
        path: '/equip/specimenEdit',
        name: '编辑标本箱',
        meta: { title: '编辑标本箱' },
        hidden: true,
        component: () => import('@/views/equip/specimen/SpecimenAdd'),
      },
      {
        path: '/equip/specimenDetail',
        name: '标本箱详情',
        meta: { title: '标本箱详情' },
        hidden: true,
        component: () => import('@/views/equip/specimen/SpecimenDetail'),
      },

      // ------------------------------------摄像头------------------------------------
      {
        path: '/equip/cameraAdd',
        name: '新增摄像头',
        meta: { title: '新增摄像头' },
        hidden: true,
        component: () => import('@/views/equip/camera/CameraAdd'),
      },
      {
        path: '/equip/cameraEdit',
        name: '编辑摄像头',
        meta: { title: '编辑摄像头' },
        hidden: true,
        component: () => import('@/views/equip/camera/CameraAdd'),
      },
      {
        path: '/equip/cameraDetail',
        name: '摄像头详情',
        meta: { title: '摄像头详情' },
        hidden: true,
        component: () => import('@/views/equip/camera/CameraDetail'),
      },
      {
        path: '/equip/cameraLiveBroadcast',
        name: '摄像头监控视频',
        meta: { title: '摄像头监控视频' },
        hidden: true,
        component: () => import('@/views/equip/camera/CameraLiveBroadcast'),
      },
      // ------------------------------------打印机------------------------------------
      {
        path: '/equip/printerAdd',
        name: '新增打印机',
        meta: { title: '新增打印机' },
        hidden: true,
        component: () => import('@/views/equip/printer/PrinterAdd'),
      },
      {
        path: '/equip/printerEdit',
        name: '编辑打印机',
        meta: { title: '编辑打印机' },
        hidden: true,
        component: () => import('@/views/equip/printer/PrinterAdd'),
      },
      {
        path: '/equip/printerDetail',
        name: '打印机详情',
        meta: { title: '打印机详情' },
        hidden: true,
        component: () => import('@/views/equip/printer/PrinterDetail'),
      },

      {
        path: '/equip/cloudTrumpetAdd',
        name: '新增云喇叭',
        meta: { title: '新增云喇叭' },
        hidden: true,
        component: () => import('@/views/equip/cloudTrumpet/CloudTrumpetAdd'),
      },
      {
        path: '/equip/cloudTrumpetEdit',
        name: '编辑云喇叭',
        meta: { title: '编辑云喇叭' },
        hidden: true,
        component: () => import('@/views/equip/cloudTrumpet/CloudTrumpetAdd'),
      },
      {
        path: '/equip/cloudTrumpetDetail',
        name: '云喇叭详情',
        meta: { title: '云喇叭详情' },
        hidden: true,
        component: () => import('@/views/equip/cloudTrumpet/CloudTrumpetDetail'),
      },

      {
        path: '/equip/aedAdd',
        name: '新增除颤仪',
        meta: { title: '新增除颤仪' },
        hidden: true,
        component: () => import('@/views/equip/aed/AedAdd'),
      },
      {
        path: '/equip/aedEdit',
        name: '编辑除颤仪',
        meta: { title: '编辑除颤仪' },
        hidden: true,
        component: () => import('@/views/equip/aed/AedAdd'),
      },
      {
        path: '/equip/aedDetail',
        name: '除颤仪详情',
        meta: { title: '除颤仪详情' },
        hidden: true,
        component: () => import('@/views/equip/aed/AedDetail'),
      },
      // ------------------------------------所有设备管理------------------------------------
      {
        path: '/equip/allEquipAdd',
        name: '新增设备',
        meta: { title: '新增设备' },
        hidden: true,
        component: () => import('@/views/equip/allEquip/AllEquipAdd'),
      },
      {
        path: '/equip/allEquipEdit',
        name: '编辑设备',
        meta: { title: '编辑设备' },
        hidden: true,
        component: () => import('@/views/equip/allEquip/AllEquipAdd'),
      },
      {
        path: '/equip/allEquipDetail',
        name: '设备详情',
        meta: { title: '设备详情' },
        hidden: true,
        component: () => import('@/views/equip/allEquip/AllEquipDetail'),
      },
      // ------------------------------------设备地址------------------------------------
      /*{

        path: "/address/deviceLocationAdd",
        name: "新增地址",
        meta: { title: "新增地址" },
        hidden: true,
        component: () => import("@/views/address/DeviceLocationAdd")
      },
      {
        path: "/address/deviceLocationEdit",
        name: "编辑地址",
        meta: { title: "编辑地址" },
        hidden: true,
        component: () => import("@/views/address/DeviceLocationAdd")
      },
      {
        path: "/address/deviceLocationDetail",
        name: "地址详情",
        meta: { title: "地址详情" },
        hidden: true,
        component: () => import("@/views/address/DeviceLocationDetail")
      },*/
      // ------------------------------------居民管理------------------------------
      {
        path: '/resident/residentCardDetail',
        name: '居民详情',
        meta: { title: '居民详情' },
        hidden: true,
        component: () => import('@/views/resident/ResidentCardDetail'),
      },
      // ------------------------------------小区管理------------------------------------
      {
        path: '/address/villageAdd',
        name: '新增小区',
        meta: { title: '新增小区' },
        hidden: true,
        component: () => import('@/views/address/VillageAdd'),
      },
      {
        path: '/address/villageEdit',
        name: '编辑小区',
        meta: { title: '编辑小区' },
        hidden: true,
        component: () => import('@/views/address/VillageAdd'),
      },
      {
        path: '/address/villageDetail',
        name: '小区详情',
        meta: { title: '小区详情' },
        hidden: true,
        component: () => import('@/views/address/VillageDetail'),
      },
      {
        path: '/address/perfectData',
        name: '完善数据',
        meta: { title: '完善数据' },
        hidden: true,
        component: () => import('@/views/address/PerfectData'),
      },
      {
        path: '/address/villageApplyDetail',
        name: '小区申请详情',
        meta: { title: '小区申请详情' },
        hidden: true,
        component: () => import('@/views/address/VillageApplyDetail'),
      },
      {
        path: '/address/localeDetail',
        name: '场所详情',
        meta: { title: '场所详情' },
        hidden: true,
        component: () => import('@/views/address/LocaleDetail'),
      },
      // -------------------------------------栋单元层
      {
        path: '/address/villageAreaAdd',
        name: '新增栋单元层',
        meta: { title: '新增栋单元层' },
        hidden: true,
        component: () => import('@/views/address/VillageAreaAdd'),
      },
      {
        path: '/address/villageAreaEdit',
        name: '编辑栋单元层',
        meta: { title: '编辑栋单元层' },
        hidden: true,
        component: () => import('@/views/address/VillageAreaAdd'),
      },
      {
        path: '/address/villageAreaDetail',
        name: '栋单元层详情',
        meta: { title: '栋单元层详情' },
        hidden: true,
        component: () => import('@/views/address/VillageAreaDetail'),
      },
      // -------------------------------------社区
      {
        path: '/address/communityAdd',
        name: '新增社区',
        meta: { title: '新增社区' },
        hidden: true,
        component: () => import('@/views/address/CommunityAdd'),
      },
      {
        path: '/address/communityEdit',
        name: '编辑社区',
        meta: { title: '编辑社区' },
        hidden: true,
        component: () => import('@/views/address/CommunityAdd'),
      },
      {
        path: '/address/communityDetail',
        name: '社区详情',
        meta: { title: '社区详情' },
        hidden: true,
        component: () => import('@/views/address/CommunityDetail'),
      },
      // ------------------------------------商户管理------------------------------------
      {
        path: '/business/businessAdd',
        name: '新增商户',
        meta: { title: '新增商户' },
        hidden: true,
        component: () => import('@/views/business/BusinessAdd'),
      },
      {
        path: '/business/businessEdit',
        name: '编辑商户',
        meta: { title: '编辑商户' },
        hidden: true,
        component: () => import('@/views/business/BusinessAdd'),
      },
      {
        path: '/business/platformBusinessAdd',
        name: '新增平台商户',
        meta: { title: '新增平台商户' },
        hidden: true,
        component: () => import('@/views/business/platformBusinessManagement/PlatformBusinessAdd'),
      },
      {
        path: '/business/platformBusinessEdit',
        name: '编辑平台商户',
        meta: { title: '编辑平台商户' },
        hidden: true,
        component: () => import('@/views/business/platformBusinessManagement/PlatformBusinessAdd'),
      },
      {
        path: '/business/businessDetail',
        name: '商户详情',
        meta: { title: '商户详情' },
        hidden: true,
        component: () => import('@/views/business/BusinessDetail'),
      },
      {
        path: '/business/businessAccount',
        name: '收款账户',
        meta: { title: '收款账户' },
        hidden: true,
        component: () => import('@/views/business/BusinessAccount'),
      },

      {
        path: '/business/businessVillageGoodsAdd',
        name: '编辑商户经营范围及产品',
        meta: { title: '编辑商户经营范围及产品' },
        hidden: true,
        component: () => import('@/views/business/BusinessVillageGoodsAdd'),
      },
      // ------------------------------------商户资料------------------------------------
      {
        path: '/business/businessFileAdd',
        name: '新增商户资料',
        meta: { title: '新增商户资料' },
        hidden: true,
        component: () => import('@/views/business/BusinessFileAdd'),
      },
      {
        path: '/business/businessFileEdit',
        name: '编辑商户资料',
        meta: { title: '编辑商户资料' },
        hidden: true,
        component: () => import('@/views/business/BusinessFileAdd'),
      },
      // ------------------------------------服务员管理------------------------------------
      {
        path: '/business/waiterAdd',
        name: '新增服务员',
        meta: { title: '新增服务员' },
        hidden: true,
        component: () => import('@/views/business/WaiterAdd'),
      },
      {
        path: '/business/waiterEdit',
        name: '编辑服务员',
        meta: { title: '编辑服务员' },
        hidden: true,
        component: () => import('@/views/business/WaiterAdd'),
      },
      {
        path: '/business/waiterDetail',
        name: '服务员详情',
        meta: { title: '服务员详情' },
        hidden: true,
        component: () => import('@/views/business/WaiterDetail'),
      },
      {
        path: '/business/qualityAccount',
        name: '资质账户',
        meta: { title: '资质账户' },
        hidden: true,
        component: () => import('@/views/business/QualityAccount'),
      },
      // ------------------------------------业务员管理------------------------------------

      {
        path: '/business/salesmanAdd',
        name: '新增业务员',
        meta: { title: '新增业务员' },
        hidden: true,
        component: () => import('@/views/business/SalesmanAdd'),
      },
      {
        path: '/business/salesmanEdit',
        name: '编辑业务员',
        meta: { title: '编辑业务员' },
        hidden: true,
        component: () => import('@/views/business/SalesmanAdd'),
      },
      {
        path: '/business/salesmanDetail',
        name: '业务员详情',
        meta: { title: '业务员详情' },
        hidden: true,
        component: () => import('@/views/business/SalesmanDetail'),
      },
      // ------------------------------------商户部门管理------------------------------------

      {
        path: '/business/businessDepartAdd',
        name: '新增商户部门',
        meta: { title: '新增商户部门' },
        hidden: true,
        component: () => import('@/views/business/BusinessDepartAdd'),
      },
      {
        path: '/business/businessDepartEdit',
        name: '编辑商户部门',
        meta: { title: '编辑商户部门' },
        hidden: true,
        component: () => import('@/views/business/BusinessDepartAdd'),
      },
      {
        path: '/business/businessDepartDetail',
        name: '商户部门详情',
        meta: { title: '商户部门详情' },
        hidden: true,
        component: () => import('@/views/business/BusinessDepartDetail'),
      },
      // ------------------------------------商户管理员------------------------------------
      {
        path: '/business/managerBusinessAdd',
        name: '新增商户管理员',
        meta: { title: '新增商户管理员' },
        hidden: true,
        component: () => import('@/views/business/ManagerBusinessAdd'),
      },
      {
        path: '/business/managerBusinessEdit',
        name: '编辑商户管理员',
        meta: { title: '编辑商户管理员' },
        hidden: true,
        component: () => import('@/views/business/ManagerBusinessAdd'),
      },
      {
        path: '/business/managerBusinessDetail',
        name: '商户管理员详情',
        meta: { title: '商户管理员详情' },
        hidden: true,
        component: () => import('@/views/business/ManagerBusinessDetail'),
      },
      // ------------------------------------推广员管理------------------------------------

      {
        path: '/business/promoterAdd',
        name: '新增推广员',
        meta: { title: '新增推广员' },
        hidden: true,
        component: () => import('@/views/business/PromoterAdd'),
      },
      {
        path: '/business/promoterEdit',
        name: '编辑推广员',
        meta: { title: '编辑推广员' },
        hidden: true,
        component: () => import('@/views/business/PromoterAdd'),
      },
      {
        path: '/business/promoterDetail',
        name: '推广员详情',
        meta: { title: '推广员详情' },
        hidden: true,
        component: () => import('@/views/business/PromoterDetail'),
      },
      // ------------------------------------商户分类------------------------------------

      {
        path: '/business/businessClassifyAdd',
        name: '新增商户分类',
        meta: { title: '新增商户分类' },
        hidden: true,
        component: () => import('@/views/business/BusinessClassifyAdd'),
      },
      {
        path: '/business/businessClassifyEdit',
        name: '编辑商户分类',
        meta: { title: '编辑商户分类' },
        hidden: true,
        component: () => import('@/views/business/BusinessClassifyAdd'),
      },
      {
        path: '/business/businessClassifyDetail',
        name: '商户分类详情',
        meta: { title: '商户分类详情' },
        hidden: true,
        component: () => import('@/views/business/BusinessClassifyDetail'),
      },
      // ------------------------------------配送费模板------------------------------------

      {
        path: '/business/deliveryModelAdd',
        name: '新增配送费模板',
        meta: { title: '新增配送费模板' },
        hidden: true,
        component: () => import('@/views/business/DeliveryModelAdd'),
      },
      {
        path: '/business/deliveryModelEdit',
        name: '编辑配送费模板',
        meta: { title: '编辑配送费模板' },
        hidden: true,
        component: () => import('@/views/business/DeliveryModelAdd'),
      },
      {
        path: '/business/deliveryModelDetail',
        name: '配送费模板详情',
        meta: { title: '配送费模板详情' },
        hidden: true,
        component: () => import('@/views/business/DeliveryModelDetail'),
      },
      // ------------------------------------会员管理------------------------------------

      {
        path: '/business/memberAdd',
        name: '新增会员',
        meta: { title: '新增会员' },
        hidden: true,
        component: () => import('@/views/business/MemberAdd'),
      },
      {
        path: '/business/memberEdit',
        name: '编辑会员',
        meta: { title: '编辑会员' },
        hidden: true,
        component: () => import('@/views/business/MemberAdd'),
      },
      {
        path: '/business/memberDetail',
        name: '会员详情',
        meta: { title: '会员详情' },
        hidden: true,
        component: () => import('@/views/business/MemberDetail'),
      },
      // ------------------------------------分配商户------------------------------------
      {
        path: '/business/distributeBusiness',
        name: '分配商户',
        meta: { title: '分配商户' },
        hidden: true,
        component: () => import('@/views/business/DistributeBusiness'),
      },
      // ------------------------------------服务分类管理------------------------------------
      {
        path: '/server/serverClassifyAdd',
        name: '新增服务分类',
        meta: { title: '新增服务分类' },
        hidden: true,
        component: () => import('@/views/server/ServerClassifyAdd'),
      },
      {
        path: '/server/serverClassifyEdit',
        name: '编辑服务分类',
        meta: { title: '编辑服务分类' },
        hidden: true,
        component: () => import('@/views/server/ServerClassifyAdd'),
      },
      {
        path: '/server/serverClassifyDetail',
        name: '服务分类详情',
        meta: { title: '服务分类详情' },
        hidden: true,
        component: () => import('@/views/server/ServerClassifyDetail'),
      },
      // ------------------------------------上层分类管理------------------------------------
      {
        path: '/server/topClassifyAdd',
        name: '新增上层分类',
        meta: { title: '新增上层分类' },
        hidden: true,
        component: () => import('@/views/server/TopClassifyAdd'),
      },
      {
        path: '/server/topClassifyEdit',
        name: '编辑上层分类',
        meta: { title: '编辑上层分类' },
        hidden: true,
        component: () => import('@/views/server/TopClassifyAdd'),
      },
      {
        path: '/server/topClassifyDetail',
        name: '上层分类详情',
        meta: { title: '上层分类详情' },
        hidden: true,
        component: () => import('@/views/server/TopClassifyDetail'),
      },
      // ------------------------------------服务模板------------------------------------
      {
        path: '/server/serverTemplateAdd',
        name: '新增服务模板',
        meta: { title: '新增服务模板' },
        hidden: true,
        component: () => import('@/views/server/ServerTemplateAdd'),
      },
      {
        path: '/server/serverTemplateEdit',
        name: '编辑服务模板',
        meta: { title: '编辑服务模板' },
        hidden: true,
        component: () => import('@/views/server/ServerTemplateAdd'),
      },
      {
        path: '/server/serverTemplateDetail',
        name: '服务模板详情',
        meta: { title: '服务模板详情' },
        hidden: true,
        component: () => import('@/views/server/ServerTemplateDetail'),
      },
      // ------------------------------------服务功能键------------------------------------
      {
        path: '/server/serverBtnAdd',
        name: '新增服务功能键',
        meta: { title: '新增服务功能键' },
        hidden: true,
        component: () => import('@/views/server/ServerBtnAdd'),
      },
      {
        path: '/server/serverBtnEdit',
        name: '编辑服务功能键',
        meta: { title: '编辑服务功能键' },
        hidden: true,
        component: () => import('@/views/server/ServerBtnAdd'),
      },
      {
        path: '/server/serverBtnDetail',
        name: '服务功能键详情',
        meta: { title: '服务功能键详情' },
        hidden: true,
        component: () => import('@/views/server/ServerBtnDetail'),
      },
      // -----------------------------------按键样式模板-------------------------------------
      {
        path: '/server/btnModelAdd',
        name: '新增按键样式模板',
        meta: { title: '新增按键样式模板' },
        hidden: true,
        component: () => import('@/views/server/BtnModelAdd'),
      },
      {
        path: '/server/btnModelEdit',
        name: '编辑按键样式模板',
        meta: { title: '编辑按键样式模板' },
        hidden: true,
        component: () => import('@/views/server/BtnModelAdd'),
      },
      {
        path: '/server/btnModelDetail',
        name: '按键样式模板详情',
        meta: { title: '按键样式模板详情' },
        hidden: true,
        component: () => import('@/views/server/BtnModelDetail'),
      },

      // ------------------------------------属性库------------------------------------
      {
        path: '/goods/attrAdd',
        name: '新增属性',
        meta: { title: '新增属性' },
        hidden: true,
        component: () => import('@/views/goods/AttrAdd'),
      },
      {
        path: '/goods/attrEdit',
        name: '编辑属性',
        meta: { title: '编辑属性' },
        hidden: true,
        component: () => import('@/views/goods/AttrAdd'),
      },
      {
        path: '/goods/attrDetail',
        name: '属性详情',
        meta: { title: '属性详情' },
        hidden: true,
        component: () => import('@/views/goods/AttrDetail'),
      },
      // ------------------------------------规格管理------------------------------------
      {
        path: '/goods/specAdd',
        name: '新增规格',
        meta: { title: '新增规格' },
        hidden: true,
        component: () => import('@/views/goods/SpecAdd'),
      },
      {
        path: '/goods/specEdit',
        name: '编辑规格',
        meta: { title: '编辑规格' },
        hidden: true,
        component: () => import('@/views/goods/SpecAdd'),
      },
      {
        path: '/goods/specDetail',
        name: '规格详情',
        meta: { title: '规格详情' },
        hidden: true,
        component: () => import('@/views/goods/SpecDetail'),
      },
      // ------------------------------------公共货品库管理------------------------------------
      {
        path: '/goods/CommonServerAdd',
        name: '新增公共货品库',
        meta: { title: '新增公共货品库' },
        hidden: true,
        component: () => import('@/views/goods/CommonServerAdd'),
      },
      {
        path: '/goods/CommonServerEdit',
        name: '编辑公共货品库',
        meta: { title: '编辑公共货品库' },
        hidden: true,
        component: () => import('@/views/goods/CommonServerAdd'),
      },
      {
        path: '/goods/commonServerDetail',
        name: '公共货品库详情',
        meta: { title: '公共货品库详情' },
        hidden: true,
        component: () => import('@/views/goods/CommonServerDetail'),
      },
      // ------------------------------------货品库管理------------------------------------
      {
        path: '/goods/businessServerAdd',
        name: '新增货品库',
        meta: { title: '新增货品库' },
        hidden: true,
        component: () => import('@/views/goods/BusinessServerAdd'),
      },
      {
        path: '/goods/businessServerEdit',
        name: '编辑货品库',
        meta: { title: '编辑货品库' },
        hidden: true,
        component: () => import('@/views/goods/BusinessServerAdd'),
      },
      {
        path: '/goods/businessServerDetail',
        name: '货品库详情',
        meta: { title: '货品库详情' },
        hidden: true,
        component: () => import('@/views/goods/BusinessServerDetail'),
      },
      {
        path: '/goods/goodsBatchAdd',
        name: '批量新增产品',
        meta: { title: '批量新增产品' },
        hidden: true,
        component: () => import('@/views/goods/GoodsBatchAdd'),
      },
      // ------------------------------------产品组合------------------------------------
      {
        path: '/goods/combineAdd',
        name: '新增产品组合',
        meta: { title: '新增产品组合' },
        hidden: true,
        component: () => import('@/views/goods/CombineAdd'),
      },
      {
        path: '/goods/combineEdit',
        name: '编辑产品组合',
        meta: { title: '编辑产品组合' },
        hidden: true,
        component: () => import('@/views/goods/CombineAdd'),
      },
      {
        path: '/goods/combineDetail',
        name: '产品组合详情',
        meta: { title: '产品组合详情' },
        hidden: true,
        component: () => import('@/views/goods/CombineDetail'),
      },
      // -----------------------------------经营产品-------------------------------------
      {
        path: '/goods/goodsEdit',
        name: '编辑经营产品',
        meta: { title: '编辑经营产品' },
        hidden: true,
        component: () => import('@/views/goods/GoodsAdd'),
      },
      {
        path: '/goods/goodsDetail',
        name: '经营产品详情',
        meta: { title: '经营产品详情' },
        hidden: true,
        component: () => import('@/views/goods/GoodsDetail'),
      },
      // ------------------------------------可售时间模板------------------------------------
      {
        path: '/goods/timeTemplateAdd',
        name: '新增可售时间',
        meta: { title: '新增可售时间' },
        hidden: true,
        component: () => import('@/views/goods/TimeTemplateAdd'),
      },
      {
        path: '/goods/timeTemplateEdit',
        name: '编辑可售时间',
        meta: { title: '编辑可售时间' },
        hidden: true,
        component: () => import('@/views/goods/TimeTemplateAdd'),
      },
      {
        path: '/goods/timeTemplateDetail',
        name: '可售时间详情',
        meta: { title: '可售时间详情' },
        hidden: true,
        component: () => import('@/views/goods/TimeTemplateDetail'),
      },
      // -----------------------------------套餐组合产品-------------------------------------
      {
        path: '/goods/goodsComboAdd',
        name: '新增套餐组合',
        meta: { title: '新增套餐组合' },
        hidden: true,
        component: () => import('@/views/goods/GoodsComboAdd'),
      },
      {
        path: '/goods/goodsComboEdit',
        name: '编辑套餐组合',
        meta: { title: '编辑套餐组合' },
        hidden: true,
        component: () => import('@/views/goods/GoodsComboAdd'),
      },
      {
        path: '/goods/goodsComboDetail',
        name: '套餐组合详情',
        meta: { title: '套餐组合详情' },
        hidden: true,
        component: () => import('@/views/goods/GoodsComboDetail'),
      },
      // -----------------------------------货品库套餐组合产品-------------------------------------
      {
        path: '/goods/bussSerComboAdd',
        name: '新增货品套餐组合',
        meta: { title: '新增货品套餐组合' },
        hidden: true,
        component: () => import('@/views/goods/BussSerComboAdd'),
      },
      {
        path: '/goods/bussSerComboEdit',
        name: '编辑货品套餐组合',
        meta: { title: '编辑货品套餐组合' },
        hidden: true,
        component: () => import('@/views/goods/BussSerComboAdd'),
      },
      {
        path: '/goods/bussSerComboDetail',
        name: '套餐货品组合详情',
        meta: { title: '套餐货品组合详情' },
        hidden: true,
        component: () => import('@/views/goods/BussSerComboDetail'),
      },
      // ------------------------------------分账流水------------------------------------
      {
        path: '/account/orderSplitDetail',
        name: '分账流水详情',
        meta: { title: '分账流水详情' },
        hidden: true,
        component: () => import('@/views/account/OrderSplitDetail'),
      },
      // ------------------------------------翼码账户------------------------------------
      {
        path: '/account/ymAccountDetail',
        name: '翼码账户详情',
        meta: { title: '翼码账户详情' },
        hidden: true,
        component: () => import('@/views/account/YmAccountDetail'),
      },
      // 翼码账户关联数据
      {
        path: '/account/ymAccountRelation',
        name: '翼码账户关联',
        meta: { title: '翼码账户关联' },
        hidden: true,
        component: () => import('@/views/account/YmAccountRelation'),
      },
      // ------------------------------------翼码商户号------------------------------------
      {
        path: '/account/ymMerchantAdd',
        name: '翼码商户号新增',
        meta: { title: '翼码商户号新增' },
        hidden: true,
        component: () => import('@/views/account/YmMerchantAdd'),
      },
      {
        path: '/account/ymMerchantEdit',
        name: '翼码商户号编辑',
        meta: { title: '翼码商户号编辑' },
        hidden: true,
        component: () => import('@/views/account/YmMerchantAdd'),
      },
      {
        path: '/account/ymMerchantDetail',
        name: '翼码商户号详情',
        meta: { title: '翼码商户号详情' },
        hidden: true,
        component: () => import('@/views/account/YmMerchantDetail'),
      },
      // -----------------------------------翼码账户审核详情-------------------------------------
      {
        path: '/account/ymAccountCheckDetail',
        name: '翼码账户审核详情',
        meta: { title: '翼码账户审核详情' },
        hidden: true,
        component: () => import('@/views/account/YmAccountCheckDetail'),
      },
      // ------------------------------------储备订单------------------------------------
      {
        path: '/account/orderSplitAccountDetail',
        name: '储备订单详情',
        meta: { title: '储备订单详情' },
        hidden: true,
        component: () => import('@/views/account/OrderSplitAccountDetail'),
      },
      // ------------------------------------微信商户号------------------------------------
      {
        path: '/account/mchInfoAdd',
        name: '新增微信商户号',
        meta: { title: '新增微信商户号' },
        hidden: true,
        component: () => import('@/views/account/MchInfoAdd'),
      },
      {
        path: '/account/mchInfoEdit',
        name: '编辑微信商户号',
        meta: { title: '编辑微信商户号' },
        hidden: true,
        component: () => import('@/views/account/MchInfoAdd'),
      },
      {
        path: '/account/mchInfoDetail',
        name: '微信商户号详情',
        meta: { title: '微信商户号详情' },
        hidden: true,
        component: () => import('@/views/account/MchInfoDetail'),
      },
      // ------------------------------------订单管理------------------------------------
      {
        path: '/order/orderAdd',
        name: '新增订单',
        meta: { title: '新增订单' },
        hidden: true,
        component: () => import('@/views/order/OrderAdd'),
      },
      {
        path: '/order/orderDetail',
        name: '订单详情',
        meta: { title: '订单详情' },
        hidden: true,
        component: () => import('@/views/order/OrderDetail'),
      },
      {
        path: '/order/orderUrgentContact',
        name: '紧急联系',
        meta: { title: '紧急联系' },
        hidden: true,
        component: () => import('@/views/order/OrderUrgentContact'),
      },
      // ------------------------------------商户推广规则------------------------------------
      {
        path: '/operation/promoteRuleAdd',
        name: '新增商户推广规则',
        meta: { title: '新增商户推广规则' },
        hidden: true,
        component: () => import('@/views/operation/PromoteRuleAdd'),
      },
      {
        path: '/operation/promoteRuleEdit',
        name: '编辑商户推广规则',
        meta: { title: '编辑商户推广规则' },
        hidden: true,
        component: () => import('@/views/operation/PromoteRuleAdd'),
      },
      {
        path: '/operation/promoteRuleDetail',
        name: '商户推广规则详情',
        meta: { title: '商户推广规则详情' },
        hidden: true,
        component: () => import('@/views/operation/PromoteRuleDetail'),
      },
      // ------------------------------------推广模板------------------------------------
      {
        path: '/operation/promoteModelAdd',
        name: '新增推广模板',
        meta: { title: '新增推广模板' },
        hidden: true,
        component: () => import('@/views/operation/PromoteModelAdd'),
      },
      {
        path: '/operation/promoteModelEdit',
        name: '编辑推广模板',
        meta: { title: '编辑推广模板' },
        hidden: true,
        component: () => import('@/views/operation/PromoteModelAdd'),
      },
      {
        path: '/operation/promoteModelDetail',
        name: '推广模板详情',
        meta: { title: '推广模板详情' },
        hidden: true,
        component: () => import('@/views/operation/PromoteModelDetail'),
      },
      // ------------------------------------海报------------------------------------
      {
        path: '/operation/posterModelAdd',
        name: '新增海报模板',
        meta: { title: '新增海报模板' },
        hidden: true,
        component: () => import('@/views/operation/PosterModelAdd'),
      },
      {
        path: '/operation/posterModelEdit',
        name: '编辑海报模板',
        meta: { title: '编辑模板海报' },
        hidden: true,
        component: () => import('@/views/operation/PosterModelAdd'),
      },
      {
        path: '/operation/posterModelDetail',
        name: '海报模板详情',
        meta: { title: '海报模板详情' },
        hidden: true,
        component: () => import('@/views/operation/PosterModelDetail'),
      },
      // ------------------------------------活动------------------------------------
      {
        path: '/operation/activeAdd',
        name: '新增营销活动',
        meta: { title: '新增营销活动' },
        hidden: true,
        component: () => import('@/views/operation/ActiveAdd'),
      },
      {
        path: '/operation/activeEdit',
        name: '编辑营销活动',
        meta: { title: '编辑营销活动' },
        hidden: true,
        component: () => import('@/views/operation/ActiveAdd'),
      },
      {
        path: '/operation/activeDetail',
        name: '营销活动详情',
        meta: { title: '营销活动详情' },
        hidden: true,
        component: () => import('@/views/operation/ActiveDetail'),
      },
      // -----------------------------------资讯-------------------------------------
      {
        path: '/operation/informationAdd',
        name: '新增资讯',
        meta: { title: '新增资讯' },
        hidden: true,
        component: () => import('@/views/operation/InformationAdd'),
      },
      {
        path: '/operation/informationDetail',
        name: '资讯详情',
        meta: { title: '资讯详情' },
        hidden: true,
        component: () => import('@/views/operation/InformationDetail'),
      },
      // -----------------------------------活动报名-------------------------------------
      {
        path: '/operation/activityAdd',
        name: '新增活动',
        meta: { title: '新增活动' },
        hidden: true,
        component: () => import('@/views/operation/ActivityAdd'),
      },
      {
        path: '/operation/activityEdit',
        name: '编辑活动',
        meta: { title: '编辑活动' },
        hidden: true,
        component: () => import('@/views/operation/ActivityAdd'),
      },
      {
        path: '/operation/activityDetail',
        name: '活动详情',
        meta: { title: '活动详情' },
        hidden: true,
        component: () => import('@/views/operation/ActivityDetail'),
      },

      // -----------------------------------标签-------------------------------------

      {
        path: '/operation/tagAdd',
        name: '新增标签',
        meta: { title: '新增标签' },
        hidden: true,
        component: () => import('@/views/operation/TagAdd'),
      },
      {
        path: '/operation/tagDetail',
        name: '标签详情',
        meta: { title: '标签详情' },
        hidden: true,
        component: () => import('@/views/operation/TagDetail'),
      },

      // -----------------------------------提现记录详情-------------------------------------
      {
        path: '/finance/cashRecordDetail',
        name: '提现记录详情',
        meta: { title: '提现记录详情' },
        hidden: true,
        component: () => import('@/views/finance/CashRecordDetail'),
      },
      // -----------------------------------资质审核详情-------------------------------------
      {
        path: '/finance/accountCheckDetail',
        name: '资质审核详情',
        meta: { title: '资质审核详情' },
        hidden: true,
        component: () => import('@/views/finance/AccountCheckDetail'),
      },

      // ------------------------------------机构管理------------------------------------
      {
        path: '/institu/hospitalAdd',
        name: '新增医院',
        meta: { title: '新增医院' },
        hidden: true,
        component: () => import('@/views/institu/HospitalAdd'),
      },
      {
        path: '/institu/hospitalEdit',
        name: '编辑医院',
        meta: { title: '编辑医院' },
        hidden: true,
        component: () => import('@/views/institu/HospitalAdd'),
      },
      {
        path: '/institu/hospitalDetail',
        name: '医院详情',
        meta: { title: '医院详情' },
        hidden: true,
        component: () => import('@/views/institu/HospitalDetail'),
      },

      {
        path: '/institu/officeAdd',
        name: '新增科室',
        meta: { title: '新增科室' },
        hidden: true,
        component: () => import('@/views/institu/OfficeAdd'),
      },
      {
        path: '/institu/officeEdit',
        name: '编辑科室',
        meta: { title: '编辑科室' },
        hidden: true,
        component: () => import('@/views/institu/OfficeAdd'),
      },
      {
        path: '/institu/officeDetail',
        name: '科室详情',
        meta: { title: '科室详情' },
        hidden: true,
        component: () => import('@/views/institu/OfficeDetail'),
      },

      {
        path: '/institu/doctorAdd',
        name: '新增医生',
        meta: { title: '新增医生' },
        hidden: true,
        component: () => import('@/views/institu/DoctorAdd'),
      },
      {
        path: '/institu/doctorEdit',
        name: '编辑医生',
        meta: { title: '编辑医生' },
        hidden: true,
        component: () => import('@/views/institu/DoctorAdd'),
      },
      {
        path: '/institu/doctorDetail',
        name: '医生详情',
        meta: { title: '医生详情' },
        hidden: true,
        component: () => import('@/views/institu/DoctorDetail'),
      },

      // ------------------------------------服务消息------------------------------------
      {
        path: '/message/serverMessageEdit',
        name: '服务消息处理',
        meta: { title: '服务消息处理' },
        hidden: true,
        component: () => import('@/views/message/ServerMessageEdit'),
      },
      {
        path: '/message/noticeDetail',
        component: () => import('@/views/message/NoticeDetail'),
        name: '管理员通知详情',
        meta: { title: '管理员通知详情' },
        hidden: true,
      },
      {
        path: '/message/noticeTaskDetail',
        component: () => import('@/views/message/notifyTask/NotifyTaskDetail'),
        name: '通知任务详情',
        meta: { title: '通知任务详情' },
        hidden: true,
      },
      {
        path: '/message/alarmListDetail',
        component: () => import('@/views/message/AlarmListDetail.vue'),
        name: '报警信息详情',
        meta: { title: '报警信息详情' },
        hidden: true,
      },
      // ------------------------------------平台规则------------------------------------
      {
        path: '/sys/ruleAdd',
        name: '新增平台规则',
        meta: { title: '新增平台规则' },
        hidden: true,
        component: () => import('@/views/system/RuleAdd'),
      },
      {
        path: '/sys/ruleEdit',
        name: '编辑平台规则',
        meta: { title: '编辑平台规则' },
        hidden: true,
        component: () => import('@/views/system/RuleAdd'),
      },
      {
        path: '/sys/ruleDetail',
        name: '平台规则详情',
        meta: { title: '平台规则详情' },
        hidden: true,
        component: () => import('@/views/system/RuleDetail'),
      },
      // ------------------------------------租户管理------------------------------------
      {
        path: '/sys/tenantAdd',
        name: '新增租户',
        meta: { title: '新增租户' },
        hidden: true,
        component: () => import('@/views/system/TenantAdd'),
      },
      {
        path: '/sys/tenantEdit',
        name: '编辑租户',
        meta: { title: '编辑租户' },
        hidden: true,
        component: () => import('@/views/system/TenantAdd'),
      },
      {
        path: '/sys/tenantDetail',
        name: '租户详情',
        meta: { title: '租户详情' },
        hidden: true,
        component: () => import('@/views/system/TenantDetail'),
      },
      // ------------------------------------应用管理------------------------------------
      {
        path: '/organ/programAdd',
        name: '新增应用',
        meta: { title: '新增应用' },
        hidden: true,
        component: () => import('@/views/organ/program/ProgramAdd'),
      },
      {
        path: '/organ/programEdit',
        name: '编辑应用',
        meta: { title: '编辑应用' },
        hidden: true,
        component: () => import('@/views/organ/program/ProgramAdd'),
      },
      {
        path: '/organ/programDetail',
        name: '应用详情',
        meta: { title: '应用详情' },
        hidden: true,
        component: () => import('@/views/organ/program/ProgramDetail'),
      },
      // ------------------------------------厂家管理------------------------------------
      {
        path: '/organ/factoryAdd',
        name: '新增厂家',
        meta: { title: '新增厂家' },
        hidden: true,
        component: () => import('@/views/organ/factory/FactoryAdd'),
      },
      {
        path: '/organ/factoryEdit',
        name: '编辑厂家',
        meta: { title: '编辑厂家' },
        hidden: true,
        component: () => import('@/views/organ/factory/FactoryAdd'),
      },
      {
        path: '/organ/factoryDetail',
        name: '厂家详情',
        meta: { title: '厂家详情' },
        hidden: true,
        component: () => import('@/views/organ/factory/FactoryDetail'),
      },
      // ------------------------------------客户管理------------------------------------
      {
        path: '/customer/customerAdd',
        name: '新增客户',
        meta: { title: '新增客户' },
        hidden: true,
        component: () => import('@/views/customer/CustomerAdd'),
      },
      {
        path: '/customer/customerEdit',
        name: '编辑客户',
        meta: { title: '编辑客户' },
        hidden: true,
        component: () => import('@/views/customer/CustomerAdd'),
      },
      {
        path: '/customer/customerDetail',
        name: '客户详情',
        meta: { title: '客户详情' },
        hidden: true,
        component: () => import('@/views/customer/CustomerDetail'),
      },
      // ------------------------------------开放管理------------------------------------
      {
        path: '/organ/organAuthAdd',
        name: '新增授权',
        meta: { title: '新增授权' },
        hidden: true,
        component: () => import('@/views/organ/OrganAuthAdd'),
      },
      {
        path: '/organ/organAuthEdit',
        name: '编辑授权',
        meta: { title: '编辑授权' },
        hidden: true,
        component: () => import('@/views/organ/OrganAuthAdd'),
      },
      {
        path: '/organ/organAuthDetail',
        name: '授权详情',
        meta: { title: '授权详情' },
        hidden: true,
        component: () => import('@/views/organ/OrganAuthDetail'),
      },
      {
        path: '/organ/softwareUpdateAdd',
        name: '新增软件',
        meta: { title: '新增软件' },
        hidden: true,
        component: () => import('@/views/organ/softwareUpdate/SoftwareAdd'),
      },
      {
        path: '/organ/softwareUpdateEdit',
        name: '编辑软件',
        meta: { title: '编辑软件' },
        hidden: true,
        component: () => import('@/views/organ/softwareUpdate/SoftwareAdd'),
      },
      {
        path: '/organ/softwareUpdateDetail',
        name: '软件升级详情',
        meta: { title: '软件升级详情' },
        hidden: true,
        component: () => import('@/views/organ/softwareUpdate/SoftwareDetail'),
      },
      // ------------------------------------系统管理------------------------------------
      {
        path: '/sys/adminAdd',
        name: '新增管理员',
        meta: { title: '新增管理员' },
        hidden: true,
        component: () => import('@/views/system/AdminAdd'),
      },
      {
        path: '/sys/adminEdit',
        name: '编辑管理员',
        meta: { title: '编辑管理员' },
        hidden: true,
        component: () => import('@/views/system/AdminAdd'),
      },
      {
        path: '/sys/adminDetail',
        name: '管理员详情',
        meta: { title: '管理员详情' },
        hidden: true,
        component: () => import('@/views/system/AdminDetail'),
      },
      {
        path: '/sys/userAdd',
        name: '新增账号',
        meta: { title: '新增账号' },
        hidden: true,
        component: () => import('@/views/system/UserAdd'),
      },
      {
        path: '/sys/userEdit',
        name: '编辑账号',
        meta: { title: '编辑账号' },
        hidden: true,
        component: () => import('@/views/system/UserEdit'),
      },
      {
        path: '/sys/userRole',
        name: '角色设置',
        meta: { title: '角色设置' },
        hidden: true,
        component: () => import('@/views/system/UserRole'),
      },
      {
        path: '/sys/userDetail',
        name: '账号详情',
        meta: { title: '账号详情' },
        hidden: true,
        component: () => import('@/views/system/UserDetail'),
      },

      {
        path: '/sys/roleAdd',
        name: '新增角色',
        meta: { title: '新增角色' },
        hidden: true,
        component: () => import('@/views/system/RoleAdd'),
      },
      {
        path: '/sys/roleEdit',
        name: '编辑角色',
        meta: { title: '编辑角色' },
        hidden: true,
        component: () => import('@/views/system/RoleAdd'),
      },
      {
        path: '/sys/roleMenus',
        name: '权限设置',
        meta: { title: '权限设置' },
        hidden: true,
        component: () => import('@/views/system/RoleMenus'),
      },
      {
        path: '/sys/roleDetail',
        name: '角色详情',
        meta: { title: '角色详情' },
        hidden: true,
        component: () => import('@/views/system/RoleDetail'),
      },

      {
        path: '/sys/menuAdd',
        name: '新增菜单',
        meta: { title: '新增菜单' },
        hidden: true,
        component: () => import('@/views/system/MenuAdd'),
      },
      {
        path: '/sys/menuEdit',
        name: '编辑菜单',
        meta: { title: '编辑菜单' },
        hidden: true,
        component: () => import('@/views/system/MenuEdit'),
      },
      {
        path: '/sys/departAdd',
        name: '新增公司',
        meta: { title: '新增公司' },
        hidden: true,
        component: () => import('@/views/system/DepartAdd'),
      },
      {
        path: '/sys/departEdit',
        name: '编辑公司',
        meta: { title: '编辑公司' },
        hidden: true,
        component: () => import('@/views/system/DepartAdd'),
      },
    ],
  },
];

export default new Router({
  mode: 'history', // 去掉url中的#
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap,
});
// 动态路由
export const asyncRouterMap = [
  /** When your routing table is too long, you can split it into small modules**/
  // beeper,
  equip,
  resident,
  business,
  address,
  server,
  goods,
  order,
  operation,
  finance,
  account,
  institution,
  message,
  organ,
  customer,
  publicModule,
  system,
  { path: '*', redirect: '/404', hidden: true },
];
